package lab02.test35;

public class Woker extends Employee {
    int day;

    @Override
    void setInformation(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    void getInformation() {
        System.out.println("普通员工的基本信息:" + "姓名:" + name + " 年龄:" + age);
    }

    @Override
    void setSalary(int salary) {
        this.salary = salary;
    }

    @Override
    void getSalary() {
        System.out.println("普通员工的基本工资:(按天计算)" + salary);
    }

    public void setDay(int day) {
        this.day = day;
    }

    public void getDay() {
        System.out.println("普通员工的工作天数:" + day);
    }

    @Override
    void computeSalary() {
        System.out.println("普通员工的总工资:" + (day * salary));
    }
}
